<div class="hr-line-dashed"></div>
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
    <label class="col-sm-2 control-label">用户名</label>
    <div class="col-sm-10">
        <input class="form-control" type="text" name="account_number" value="{{$account_number}}">
        <span class="help-block m-b-none">用户名必须唯一，如"admin123","zhangsan"等</span>
    </div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
    <label class="col-sm-2 control-label">密码</label>
    <div class="col-sm-10">
        <input class="form-control" type="password" name="password" value="">
        <span class="help-block m-b-none">该用户的密码，尽量设置复杂</span>
    </div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group{{ $errors->has('repassword') ? ' has-error' : '' }}">
    <label class="col-sm-2 control-label">确认密码</label>
    <div class="col-sm-10">
        <input class="form-control" type="password" name="repassword" value="">
        <span class="help-block m-b-none">请重复输入上面的密码</span>
    </div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
    <label class="col-sm-2 control-label">角色列表</label>
    @if(isset($id)&&$id==1)
        <div class="col-sm-8" style="float:left;padding-left:20px;"><h2>超级管理员</h2></div>
    @else
        <div class="col-sm-10">
            @foreach($rolesAll as $v)
                <span class="checkbox-custom checkbox-default">
                    <i class="fa"></i>
                    <input type="checkbox" @if(in_array($v['id'],$roles)) checked @endif
                    id="inputCheckbox{{$v['id']}}" value="{{$v['id']}}" name="roles[]">
                    <label for="inputCheckbox{{$v['id']}}">{{$v['display_name']}}</label>
                </span>
            @endforeach
            <span class="help-block m-b-none">请选择该用户的所属组</span>
        </div>
    @endif
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
    <div class="col-sm-4 col-sm-offset-2">
        <button class="btn btn-white" type="reset">取消</button>
        <button class="btn btn-primary" type="submit">提交</button>
    </div>
</div>